﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq.Expressions;

namespace NRemedy.Linq
{
    public class TranslateResult
    {
        public Type TargetType { get; set; }

        //for where clause
        public StringBuilder Qulification { get; set; }

        //select expression
        public LambdaExpression SelectExpression { get; set; } 

        //for select clause
        public List<MemberMap> SelectedProperties { get; set; }

        //for count clause
        public bool Count { get; set; }

        //for select clause
        public bool Select { get; set; }

        public TranslateResult()
        {
            Qulification = new StringBuilder();
            SelectedProperties = new List<MemberMap>();
 
        }
    }

    public class MemberMap
    {
        public string SourceMemberName { get; set; }
    }
}
